package com.woniuxy.email.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 自动消费：简单队列监听器
 */
@Component
@RabbitListener(queues = "simple.queue")
@Slf4j
public class SimpleQueueListener2 {

    @RabbitHandler
    public void handle(String message) {
        log.info("简单队列2接收到消息：{}", message);
    }
}